package com.example.activiti.mapper;

import com.example.activiti.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    User selectById(int id);

    User selectByName(String name);

    void insert(User user);

    void update(User user);

    void delete(@Param("id") int id);
}
